# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=nsoq
pkgver=1.9.5
pkgrel=1
groups=('blackarch' 'blackarch-networking' 'blackarch-scanner'
        'blackarch-fuzzer')
pkgdesc='A Network Security Tool for packet manipulation that allows a large number of options.'
arch=('x86_64' 'aarch64')
url='https://github.com/FelipeEcker/nsoq/tags'
license=('BSD')
source=("https://github.com/FelipeEcker/$pkgname/archive/v$pkgver.tar.gz")
sha512sums=('b73039880e75a1a43be25ea8d66cbaff9b2340f1cd991808fed00a02e8e4ba9ede62d2a965882689e38b989c77274155da06a44a5f5102c2c2801a18bdec6664')

build() {
  cd "$pkgname-$pkgver"

  make
}

package() {
  cd "$pkgname-$pkgver"

  install -Dm 755 "bin/$pkgname" "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname" CHANGELOG INSTALL \
    README.md docs/TODO "docs/$pkgname.txt"
  install -Dm 644 "docs/$pkgname.8.gz" \
    "$pkgdir/usr/share/man/man8/$pkgname.8.gz"
}

